<?php
/*
 * @Author: liujiachen liujiachen@neuedu.com
 * @Date: 2024-09-13 14:57:58
 * @LastEditors: liujiachen liujiachen@neuedu.com
 * @LastEditTime: 2024-09-13 17:48:22
 * @FilePath: \WWW\phpcode\sql\sql_fengzhaung\text.php
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

// 都是调用 而这里使用include_once 的作用是如果require报错 则执行include 如果存在该文件则不执行
require_once("function.php");
require_once("person.php");


$tabName = "person";
$value = "";
$id = 36;
$where = [];
$person = new Person(44,'小黄','12435435','123123124','123','adwda',2,2,2);
//这样写会把值覆盖

// $person->setNickname('nickname');
// $person->setMobile('mobile');
// $person->setDepid('depid');
// $person->setJobid('jobid');
$filed = [
    'nickname'=>'nickname',
    'mobile'=>'mobile',
    'depid'=>'depid',
    'jobid'=>'jobid'
];


// $value = [
//     'nickname'=>'小王',
//     'mobile'=>'1231243454',
//     'depid'=>'2',
//     'jobid'=>'2',
// ];

// php对象调用方法和属性使用箭头
// var_dump($person->select($tabName));
// exit;

//通过输入表面进行单查询
// $data =  $person->insert($tabName,$filed);
// // $data = $person->nickname;
// var_dump($data);